import request from '@/utils/request';

export function manyAudit(data) {
  return request({
    method: "post",
    url: "/comprehensive/goodaudit/manyAudit",
    data
  });
}

export function changeApply(data) {
  return request({
    method: "post",
    url: "/comprehensive/goodaudit/changeApply",
    data
  });
}

export function voidApply(data) {
  return request({
    method: "post",
    url: "/comprehensive/goodaudit/voidApply",
    data
  });
}

export function fdyCountUnAudit() {
  return request({
    method: "get",
    url: "/comprehensive/goodaudit/fdyCountUnAudit"
  });
}

export function xwCountUnAudit() {
  return request({
    method: "get",
    url: "/comprehensive/goodaudit/xwCountUnAudit"
  });
}

export function jwcCountUnAudit() {
  return request({
    method: "get",
    url: "/comprehensive/goodaudit/jwcCountUnAudit"
  });
}

export let applyStatus = [
  {
    label: "已提交待辅导员审核",
    value: "1"
  },
  {
    label: "辅导员审核通过",
    value: "2"
  },
  {
    label: "学院审核通过",
    value: "3"
  },
  {
    label: "学工处审核通过",
    value: "6"
  },
  {
    label: "驳回",
    value: "10"
  },
  {
    label: "拒绝",
    value: "11"
  },
  {
    label: "已重新提交",
    value: "14"
  }
];

export let goodClassApplyStatus = [
  {
    label: "已提交待辅导员审核",
    value: "1"
  },
  {
    label: "辅导员审核通过",
    value: "2"
  },
  {
    label: "学院审核通过",
    value: "3"
  },
  {
    label: "学工处审核通过",
    value: "6"
  },
  {
    label: "拒绝",
    value: "11"
  }
];

export function xwExport(params) {
  return request({
    method: "get",
    url: "/comprehensive/goodapply/xwExport",
    params
  });
}

export function fdyExport(params) {
  return request({
    method: 'get',
    url: "/comprehensive/goodapply/fdyExport",
    params
  });
}

export function importJxj(params) {
  return request({
    method: "get",
    url: "/comprehensive/goodapply/importXyjxj",
    params
  });
}

export function importShxs(params) {
  return request({
    method: "get",
    url: "/comprehensive/goodapply/importShxs",
    params
  });
}

export function importYxbg(params) {
  return request({
    method: "get",
    url: "/comprehensive/goodapply/importYxbg",
    params
  });
}

export function fdyAudit(data) {
  return request({
    method: 'POST',
    data,
    url: "/comprehensive/goodaudit/fdyAudit"
  });
}

export function deptAudit(data) {
  return request({
    method: 'POST',
    data,
    url: "/comprehensive/goodaudit/deptAudit"
  });
}

export function finalAudit(data) {
  return request({
    method: 'POST',
    data,
    url: "/comprehensive/goodaudit/finalAudit"
  });
}

export function listStuScoreClassRank(stuNo) {
  return request({
    method: "GET",
    url: "/comprehensive/goodapply/listStuScoreClassRank/" + stuNo
  });
}


export function listStuYearCourseScore(stuNo, params = {}) {
  return request({
    method: "GET",
    url: "/comprehensive/goodapply/listStuYearCourseScore/" + stuNo,
    params
  });
}


export function countStuPass(stuNo) {
  return request({
    method: "GET",
    url: "/comprehensive/goodapply/countStuPass/" + stuNo
  });
}


export function countStuIam(stuNo) {
  return request({
    method: "GET",
    url: "/comprehensive/goodapply/countStuIam/" + stuNo
  });
}

export function lookDetail(id) {
  return request({
    method: "GET",
    url: "/comprehensive/goodapply/lookDetail/" + id
  });
}

export function listFdyAudit(params = {}) {
  return request({
    url: "/comprehensive/goodapply/listFdyAudit",
    method: "GET",
    params
  });
}

export function listFdyAllAudit(params = {}) {
  return request({
    url: "/comprehensive/goodapply/listFdyAllAudit",
    method: "GET",
    params
  });
}

export function listXwAudit(params = {}) {
  return request({
    url: "/comprehensive/goodapply/listXwAudit",
    method: "GET",
    params
  });
}

export function listJwcAudit(params = {}) {
  return request({
    url: "/comprehensive/goodapply/listJwcAudit",
    method: "GET",
    params
  });
}

export function listDeptAudit(params = {}) {
  return request({
    url: "/comprehensive/goodapply/listDeptAudit",
    method: "GET",
    params
  });
}

export function listAllAudit(params = {}) {
  return request({
    url: "/comprehensive/goodapply/listAllAudit",
    method: "GET",
    params
  });
}



// 查询评优审核列表
export function listGoodaudit(query) {
  return request({
    url: '/comprehensive/goodaudit/list',
    method: 'get',
    params: query
  })
}

// 查询评优审核详细
export function getGoodaudit(id) {
  return request({
    url: '/comprehensive/goodaudit/' + id,
    method: 'get'
  })
}

// 新增评优审核
export function addGoodaudit(data) {
  return request({
    url: '/comprehensive/goodaudit/add',
    method: 'post',
    data: data
  })
}

// 修改评优审核
export function updateGoodaudit(data) {
  return request({
    url: '/comprehensive/goodaudit/update',
    method: 'post',
    data: data
  })
}

// 删除评优审核
export function delGoodaudit(id) {
  return request({
    url: '/comprehensive/goodaudit/del',
    method: 'post',
    data: id
  })
}
